import api from '../../../config/api'
import { get, post } from '../../../utils/request'
const consumerActions = {
  setTest: ({ commit, state }, newVal) => {
    return commit('SET_TEST', newVal)
  },
  getHomePageData: async ({ commit, state }, params) => {
    const res = await post(api.consumerHomePage, params)
    if (res.status !== 200) {
      return
    }
    return commit('SET_CON_HOMEPAGEDATA', res)
  },
}

export default consumerActions;